<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>link操作网页</title>
</head>
<body>
<table border="1" width="60%" cellspacing="0" style="text-align: center">
    <thead>
    <tr>
        <th>姓名</th>
        <th>电话</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="link:${pageInfo.list}">
        <td th:text="${link.name}"/>
        <td th:text="${link.tel}"/>
        <td>
            <a style="margin: 5px" th:href="@{/link/del(id=${link.linkId})}">删除</a>
            <a style="margin: 5px" th:href="@{/link/findById(id=${link.linkId})}">修改</a>
        </td>
    </tr>
    </tbody>
</table>
<a style="margin: 10px"
   th:each="i:${#numbers.sequence(1,pageInfo.pages)}"
   th:text="${i}"
   th:href="@{/link/findAllByPage(pageNo=${i})}"></a>
<hr>

<div>
    <a href="/html/link/add.html">点击添加</a>
</div>


</body>
</html>